/*
 * prime.cpp
 *
 *  Created on: Aug 16, 2012
 *      Author: jh238d
 */

#include <iostream>
using namespace std;

void prime(unsigned int n){
	for(int i=2;i<n+1;i++){
		bool isPrime = true;
		for(int j=2;j*j<=i;j++)
			if(i%j==0){
				isPrime=false;
				break;
			}
		if(isPrime)
			cout<<i<<endl;
	}
}

int main(){
	prime(100);
	return 0;
}


